﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="LoanRepayment.ascx.cs" Inherits="Controls_LoanRepayment" %>
<%@ Register TagPrefix="ajax" Namespace="AjaxControlToolkit" Assembly="AjaxControlToolkit"%>

<asp:Button runat="server" ID="hiddenTargetControlForModalPopup" Style="display: none" />
<ajax:ModalPopupExtender 
    runat="server" 
    ID="programmaticModalPopup" 
    TargetControlID="hiddenTargetControlForModalPopup" 
    PopupControlID="programmaticPopup"
    DropShadow="True" 
    CancelControlID="infoBoxCancelButtonID"
    PopupDragHandleControlID="programmaticPopupDragHandle"
    RepositionMode="RepositionOnWindowResizeAndScroll">
</ajax:ModalPopupExtender>

<asp:Panel runat="server" ID="programmaticPopup" Style=" width:500px; height:300px; background-color: white; border: 1px solid Gray; display: none; position: absolute; top: 30%; left:30%;" >
     
     <div runat="server" ID="programmaticPopupDragHandle" style="border: 1px solid black; text-align:center; font-size:15pt; background-color:Lime; text-transform:uppercase; cursor: move; ">
        <asp:Label ID="infoBoxTitleLabel" runat="server" Text="Loan repayment:"></asp:Label>
    </div>         

    <div runat="server" id="bodyMessageDiv">
        <div class="table">
            <div class="row">
                <div class="cell">
                    <asp:Label Text="Repayment on:" runat="server" ID="repaymentLabelID"></asp:Label>
                </div>
                <div class="cell">
                    <asp:TextBox ID="refundDateTextBox" runat="server" CssClass="microElement1" onChange="fDiffPeriod(this);"></asp:TextBox>
                    <ajax:CalendarExtender ID="refundDateCalendarExtender" runat="server"  TargetControlID="refundDateTextBox" />
                </div>
            </div>
            <div class="row">
                <div class="cell">
                    <asp:Label runat="server" ID="amountLabelID" Text="Amount:"></asp:Label>
                </div>
                <div class="cell">
                    <asp:TextBox ID="refundInputPaysTextBox" runat="server" CssClass="microElement1"></asp:TextBox>
                </div>
            </div>
            <div class="row">
                <div class="cell">
                    <asp:Label runat="server" ID="paymentTypeLabelID" Text="Payment Type:"></asp:Label>
                </div>
                <div class="cell">
                    <asp:DropDownList runat="server" ID="paymentTypeListID"></asp:DropDownList>
                </div>
            </div>
            <div class="row">
                <div class="cell">
                    <asp:Label runat="server" ID="noteLabelID" Text="Note:"></asp:Label>
                </div>
                <div class="cell">
                    <asp:TextBox runat="server" ID="noteTextBoxID" TextMode="MultiLine"></asp:TextBox>
                </div>
            </div>
        </div>                 
    </div>   

    <div style="clear:both;"></div>  
    <hr />
    <div style="text-align:right;" >
        <asp:Button ID="infoBoxOkButton" runat="server" Text="Save" Width="150px" OnClick="saveButton_Click" />
        <asp:Button ID="infoBoxCancelButtonID" runat="server" Text="Cancel" Width="150px" OnClick="cancelButton_Click" />
    </div>
    
</asp:Panel>